﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BowmanAttack2 :MonoBehaviour, IAttack
{
    [SerializeField]
    float aggressivity = 4;
    public float Aggressivity
    {
        get => aggressivity;
        set => aggressivity = value;
    }

    Character owner;
    public Character Owner { get => owner; set => owner = value; }

    string attackName;
    public string Name { get => attackName; set => attackName = value; }

    public float Attack(Character target)
    {
        target.Hp -= aggressivity;
        //Debug.Log(string.Format("{0} Attack {1} : {2}",owner.name,target.name,aggressivity));
        return aggressivity;
    }
}
